/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pl.com.betacom.scjp.j2se5chapterReviews;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * 
 */
public class CH9 {
	public static void main(String[] args) {
		
		// Regulars
		Pattern p = Pattern.compile("[0-8&&4-5]");
		Matcher m = p.matcher("1234567890");
		while (m.find()) {
			System.out.println(m.toMatchResult().group());
		}
		
		// Wrappers
		Double d = new Double(1.0d);
		Double df = new Double(1.0f);
		float pf = 1.0f;
		Double df2 = new Double(1.0f);
		
		Float f = new Float(1.0f);
		Float fd = new Float(1.0d);
	}
}
